import request from '@/utils/http'
//获取商品详情
export const getGoodsAPI = (id) => request.get('/goods', { params: { id } })
/* export const getGoodsAPI = (id) => {
    return request({
        url: '/goods',
        params: {
            id
        }
    })
} */
//获取热榜商品
export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return request({
        url: '/goods/hot',
        params: {
            id,
            type,
            limit
        }
    })
}